<?php
namespace Process\Controller;
use Admin\Controller\AdminController;
/**
 * 流程管理
 */
class AppointController extends AdminController {

    /**
     * 当前模块参数
     */
	protected function _infoModule(){
        $model = D('Functions/Service');
        $menu = $model -> getModuleMenu();
		return array(
            'info' => array(
                    'name' => '预约下单',
                    'description' => '管理下单信息',
                ),
            'menu' => $menu,
            );
	}
	/**
     * 各服务类型的套系类型
     */
    public function index(){
        $model = D('Functions/Style');
        if(!empty($_GET['service_id'])){
           $map['A.service_id'] = array('eq',$_GET['service_id']); 
        }
        $map['B.service_status'] = array('eq',1);
        //URL参数
        $pageMaps = array();
        //查询数据
        $count = $model->countList($map);
        $limit = $this->getPageLimit($count,3);
        $styleList = $model -> loadList($map,$limit);
        $this->assign('styleList', $styleList);
        $this->assign('page',$this->getPageShow($pageMaps));
        $this->adminDisplay();
    } 

    /**
     *预定下单
     *
     */

    public function order(){
        $this->adminDisplay();
    }
}